import request from '@/utils/request'

// 查询房屋估价列表
export function listHouseAppraisal(query) {
  return request({
    url: '/appraisal/houseAppraisal/list',
    method: 'get',
    params: query
  })
}

// 查询房屋估价详细
export function getHouseAppraisal(id) {
  return request({
    url: '/appraisal/houseAppraisal/' + id,
    method: 'get'
  })
}

// 新增房屋估价
export function addHouseAppraisal(data) {
  return request({
    url: '/appraisal/houseAppraisal',
    method: 'post',
    data: data
  })
}

// 修改房屋估价
export function updateHouseAppraisal(data) {
  return request({
    url: '/appraisal/houseAppraisal',
    method: 'put',
    data: data
  })
}

// 删除房屋估价
export function delHouseAppraisal(id) {
  return request({
    url: '/appraisal/houseAppraisal/' + id,
    method: 'delete'
  })
}
